import { PopoverProperty } from "../drawing-feature-popover/drawing-feature-popover.model";


export interface DrawingFeaturePopoverOptions {
    properties?: PopoverProperty[];
    closeCallback?: () => void;
    removeCallback?: () => void;
}

export class DrawingFeaturePopoverSubject {
    private properties: PopoverProperty[];
    constructor(options: DrawingFeaturePopoverOptions) {
        this.properties = options.properties;
        if(options.closeCallback) {
            this.closeCallback = options.closeCallback;
        }
        if(options.removeCallback) {
            this.removeCallback = options.removeCallback;
        }
    }
    
    closeCallback(): void {};

    removeCallback(): void {};

    getProperties(): PopoverProperty[] {
        return this.properties;
    }

}